<template>
  <div class="video" v-if="arr.length !== 0">
    <div class="title" style="display: flex">
      <div class="title-left">精选音乐视频</div>
      <div class="title-right">
        <i class="iconfont icon-fanhui"></i>
        <span>换一批</span>
      </div>
    </div>
    <div class="main">
      <Video v-for="v in arr" :key="v.vid" :v="v" />
    </div>
    <!-- <Video v-for="v in arr" :key="v.id"/> -->
  </div>
</template>

<script>
import Video from "../components/video.component.vue";
import { getlink } from "@/api/getlink";
export default {
  data() {
    return {
      arr: [],
    };
  },
  created() {
    getlink("/wjmz/load//videoList").then((res) => {
      this.arr = res.data;
    });
  },
  components: {
    Video,
  },
};
</script>

<style lang="less" scoped>
.video {
  height: 5.03rem;
  background-color: #ffffff;
  border-radius: 0.16rem;
  margin-bottom: 0.19rem;
  padding: 0.42rem 0 0.46rem 0.3rem;
  .title {
    justify-content: space-between;
    line-height: 0.5rem;
    height: 0.5rem;
    margin-bottom: 0.22rem;
    padding-right: 0.3rem;
    .title-left {
      font-size: 0.32rem;
    }
    .title-right {
      width: 1.43rem;
      display: flex;
      justify-content: center;
      align-items: center;
      height: 0.5rem;
      border: 0.02rem solid;
      border-radius: 0.19rem;
      i::before {
        font-size: 0.2rem;
        margin-right: 0.08rem;
      }
      span {
        font-size: 0.23rem;
      }
    }
  }
  .main {
    display: flex;
    overflow: auto;
  }
}
/*隐藏滚动条*/
::-webkit-scrollbar {
  display: none;
}
</style>